package com.yoyo.ad.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

@Entity/*(// Define indexes spanning multiple columns here.
        indexes = {
                @Index(value = "adId DESC, boundedType DESC", unique = true)
        })*/
public class AdStatisticsBean {

    @Id(autoincrement = true)
    private Long id;

    private long adId;

    /*
     * 上报类型 1点击,2请求,3ip,4总来源单次展示最少间隔时间,5总来源单日最多展示次数,6广告位限制次数
     */
    private int eventType;

    //上报日期
    private long boundedTime;

    public AdStatisticsBean(long adId, int reportType) {
        this(null, adId, reportType, System.currentTimeMillis());
    }

    @Generated(hash = 551837626)
    public AdStatisticsBean(Long id, long adId, int eventType, long boundedTime) {
        this.id = id;
        this.adId = adId;
        this.eventType = eventType;
        this.boundedTime = boundedTime;
    }

    @Generated(hash = 1760718838)
    public AdStatisticsBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getAdId() {
        return this.adId;
    }

    public void setAdId(long adId) {
        this.adId = adId;
    }

    public int getEventType() {
        return this.eventType;
    }

    public void setEventType(int eventType) {
        this.eventType = eventType;
    }

    public long getBoundedTime() {
        return this.boundedTime;
    }

    public void setBoundedTime(long boundedTime) {
        this.boundedTime = boundedTime;
    }

}
